<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
?>
<form action="<?php echo JRoute::_('index.php?option=com_product&layout=edit&id='.(int) $this->item->id); ?>"
      method="post" name="adminForm" id="product-form">
	<div class="width-60 fltlft">
		<fieldset class="adminform">
			<legend><?php echo $this->isNew ? JText::_('COM_PRODUCT_NEW_PRODUCT') : JText::_('COM_PRODUCT_EDIT_PRODUCT'); ?></legend>
			<ul class="adminformlist">
				<li><?php echo $this->form->getLabel('code'); ?>
				<?php echo $this->form->getInput('code'); ?></li>
			
				<li><?php echo $this->form->getLabel('name'); ?>
				<?php echo $this->form->getInput('name'); ?></li>
				
				<li><?php echo $this->form->getLabel('catid'); ?>
				<?php echo $this->form->getInput('catid'); ?></li>
				
				<li><?php echo $this->form->getLabel('price'); ?>
				<?php echo $this->form->getInput('price'); ?></li>
				
				<li><?php echo $this->form->getLabel('discount'); ?>
				<?php echo $this->form->getInput('discount'); ?></li>
				
				<li><?php echo $this->form->getLabel('quantity'); ?>
				<?php echo $this->form->getInput('quantity'); ?></li>
				
				<li><?php echo $this->form->getLabel('id'); ?>
				<?php echo $this->form->getInput('id'); ?></li>
			</ul>
			<div class="clr"></div>
			<?php echo $this->form->getLabel('description'); ?>
			<div class="clr"></div>
			<?php echo $this->form->getInput('description'); ?>
		</fieldset>
	</div>
	<div class="width-40 fltrt">
		<?php echo JHtml::_('sliders.start', 'content-sliders-'.$this->item->id, array('useCookie'=>1)); ?>
					<?php echo JHtml::_('sliders.panel', JText::_('COM_PRODUCT_FIELDSET_PUBLISHING'), 'publishing-details'); ?>
		<fieldset class="panelform">
			<ul class="adminformlist">
				<?php if (!$this->isNew) { ?> 
					<li><?php echo $this->form->getLabel('created'); ?>
					<?php echo $this->form->getInput('created'); ?></li>

					<li><?php echo $this->form->getLabel('modified'); ?>
					<?php echo $this->form->getInput('modified'); ?></li>
				<?php }?>
				
				<li><?php echo $this->form->getLabel('published'); ?>
				<?php echo $this->form->getInput('published'); ?></li>
				
				<li><?php echo $this->form->getLabel('featured'); ?>
				<?php echo $this->form->getInput('featured'); ?></li>
			</ul>
		</fieldset>
		<?php echo JHtml::_('sliders.end'); ?>
	</div>
	<div class="clr"></div>
	<div>
		<input type="hidden" name="task" value="product.edit" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
</form>